package com.yc.commontlib.test

import androidx.fragment.app.Fragment
import kotlin.properties.Delegates
import kotlin.reflect.KProperty

/**
 * Creator: yc
 * Date: 2021/6/3 18:19
 * UseDes:
 */
fun main() {
    println("start")
    val temp = BaseImpl(1)
    A(temp).print(2)
//    Delegates.observable()
}
class TestFragment:Fragment(){
//    val data :Int by fragmentA
}
interface Base {
    fun print(a: Int)
}

class BaseImpl(val x: Int) : Base {
    override fun print(a: Int) {
        println("aa:${a}--${x}")
    }
}

class A(val mB: BaseImpl) : Base by mB {

}

